package cn.ecnu.vo.fromFront;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.PositiveOrZero;

@Data
public class CommentConsultVo {
    private Integer consultRecordId;
    @Max(value = 5, message = "最大值不能超过5")
    @PositiveOrZero(message = "评分不能为负数")
    @NotNull
    private Integer fromGrade;
    private String fromComment;

}
